package cn.exempale.mscapplication.model.db.dao;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Query;

import java.util.List;

import cn.exempale.mscapplication.model.db.entity.ResultEntity;

@Dao
public interface ResultDAO extends BaseDAO<ResultEntity> {

    @Query("select * from result where task_id = :taskId order by speak_time")
    LiveData<List<ResultEntity>> findByTaskId(String taskId);
}
